<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>

<body>
    <script>
        for (x = 1; x < 100; x++) {
            for (y = 1; y < 100; y++) {
                for (z = 1; z < 100; z++) {
                    if (5 * x + 3 * y + 1 / 3 * z==100 && x + y + z==100) {
                        // alert("公鸡："+x);
                        // alert("母鸡："+y);
                        // alert("小鸡："+z);
                        document.write("公鸡："+x,"母鸡："+y,"小鸡："+z ,"<br>");
                    }
                }
            }
        }

    </script>
</body>

</html>